package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "focus_user")
public class FocusUser implements Serializable {
    private ObjectId id;
    private Integer commentType;   //评论类型，1-点赞，2-评论，3-喜欢,4-关注
    private Long userId;           //评论人
    private Long publishUserId;    //被评论人ID
    private Long created; 		   //发表时间
}
